package com.kit.cloud.user.fegin;

import com.kit.cloud.user.fallback.OrderSentinelService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "order", url = "localhost:8085/getOrder", fallback= OrderSentinelService.class)
@Component
public interface OrderService {

    @GetMapping("/getOrder")
    String getOrder();
}

